package com.henu.cee_service.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.aspectj.lang.annotation.DeclareAnnotation;

import javax.validation.constraints.NotBlank;

/**
 * description: NewsAddReqVO
 * date: 2020/9/19 21:33
 * author: JSM
 * version: 1.0
 */

@Data
public class NewsAddReqVO {
    @ApiModelProperty(value = "新闻标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "作者")
    private String author = "";

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @ApiModelProperty(value = "新闻来源")
    @NotBlank(message = "来源不能为空")
    private String newsSource;

}
